package com.spzx.feign.order;

import com.spzx.model.entity.order.OrderInfo;
import com.spzx.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Project: spzx-parent
 * Package: com.spzx.feign.order
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/5/5 下午5:50
 */
@FeignClient(value = "service-order")
public interface OrderFeignClient {
    //获取订单信息
    @GetMapping("/api/order/orderInfo/auth/getOrderInfoByOrderNo/{orderNo}")
    public Result<OrderInfo> getOrderInfoByOrderNo(@PathVariable String orderNo);

    //更新订单状态
    @GetMapping("/api/order/orderInfo/auth/updateOrderStatusPayed/{orderNo}/{orderStatus}")
    public abstract Result updateOrderStatus(@PathVariable(value = "orderNo") String orderNo, @PathVariable(value = "orderStatus") Integer orderStatus);
}
